import {
	myRequest
} from '@/utils/request.js'
/**
 * 推广人列表
 */
export const getPage = (data) => {
	return myRequest({
		url: '/mallapi/userinfo/page',
		method: 'get',
		data,
		showLoading: true
	});
}
/**
 * 修改用户信息
 */
export const editObj = (data) => {
	return myRequest({
		url: '/mallapi/userinfo/update/info',
		method: 'post',
		data,
		showLoading: true
	});
}

/**
 * 修改手机号
 */
export const editPhone = (data) => {
	return myRequest({
		url: '/mallapi/userinfo/update/phone',
		method: 'post',
		data,
		showLoading: true
	});
}

/**
 * 获取用户信息
 */
export const getUserInfo = () => {
	return myRequest({
		url: '/mallapi/userinfo',
		method: 'get',
		showLoading: false
	});
}
